package org.dromara.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.system.domain.PayOrder;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 订单视图对象 pay_order
 *
 * @author Gavino
 * @date 2024-10-22
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = PayOrder.class)
public class PayOrderClientExploreVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 商户名称
     */
    @ExcelProperty(value = "商户账号")
    private String clientName;

    /**
     * 应用ID
     */
    @ExcelProperty(value = "应用ID")
    private Long appId;

    /**
     * A端订单号
     */
    @ExcelProperty(value = "A端订单号")
    private String orderAid;

    /**
     * B端订单号
     */
    @ExcelProperty(value = "B端订单号")
    private String orderNo;

    /**
     * C端订单号
     */
    @ExcelProperty(value = "C端订单号")
    private Long orderId;

    /**
     * 平台订单号
     */
    @ExcelProperty(value = "平台订单号")
    private String orderCid;

    /**
     * 支付状态
     */
    @ExcelProperty(value = "支付状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "order_status")
    private Integer status;

    /**
     * 原始金额
     */
    private BigDecimal aMoney;

    /**
     * 原始美元金额
     */
    private BigDecimal aUsdMoney;

    /**
     * 订单总金额
     */
    @ExcelProperty(value = "订单总金额")
    private BigDecimal orderMoney;

    /**
     * 货币类型
     */
    @ExcelProperty(value = "货币单位")
    private String currency;

    /**
     * 订单美元金额
     */
    @ExcelProperty(value = "订单美元金额")
    private BigDecimal usdMoney;

    /**
     * 强制货币金额
     */
    @ExcelProperty(value = "强制货币金额")
    private BigDecimal forceMoney;

    /**
     * 强制货币类型
     */
    @ExcelProperty(value = "强制货币类型")
    private String forceCurrency;

    /**
     * 轮询组平台备注
     */
    @ExcelProperty(value = "轮询组平台备注")
    private String groupTypeRemark;

    /**
     * 来源域名
     */
    @ExcelProperty(value = "来源域名")
    private String fromDomain;

    /**
     * 来源IP
     */
    @ExcelProperty(value = "下单IP")
    private String formIp;

    /**
     * 客户姓名
     */
    @ExcelProperty(value = "客户姓名")
    private String customerName;
    /** 姓*/
    @ExcelProperty("姓")
    private String firstName;
    /** 名*/
    @ExcelProperty("名")
    private String lastName;

    /**
     * 客户电话
     */
    @ExcelProperty(value = "客户电话")
    private String customerPhone;

    /**
     * 客户邮箱
     */
    @ExcelProperty(value = "客户邮箱")
    private String customerEmail;

    @ExcelProperty(value = "国家")
    private String country;

    @ExcelProperty(value = "城市")
    private String city;

    @ExcelProperty(value = "州")
    private String state;

    @ExcelProperty(value = "地址1")
    private String address_1;

    @ExcelProperty(value = "地址2")
    private String address_2;

    @ExcelProperty(value = "邮编")
    private String postcode;

    /**
     * 订单类型
     */
    @ExcelProperty(value = "订单类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "order_type")
    private Integer orderType;

    /**
     * 商品类型
     */
    @ExcelProperty(value = "商品类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "goods_type")
    private Integer goodsType;

    /**
     * 退款状态
     */
    @ExcelProperty(value = "退款状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "refund_status")
    private Integer refundStatus;

    /**
     * 物流状态
     */
    @ExcelProperty(value = "物流状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "logistics_status")
    private Integer trackStatus;

    /**
     * 物流单号
     */
    @ExcelProperty(value = "物流单号")
    private String trackNo;

    /**
     * 争议状态
     */
    @ExcelProperty(value = "争议状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "disputes_status")
    private Integer disputeStatus;

    /**
     * 争议备注
     */
    @ExcelProperty(value = "争议备注")
    private String disputeRemark;

    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ExcelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 产品名称
     */
    @ExcelProperty(value = "产品名称")
    @ColumnWidth(75)
    private String name;

    /**
     * 产品图片
     */
    @ExcelProperty(value = "产品图片")
    private String image;

    /**
     * 产品规格
     */
    @ExcelProperty(value = "产品规格")
    private String attributes;

    /**
     * 产品数量
     */
    @ExcelProperty(value = "产品数量")
    private Integer quantity;

    /**
     * 产品单价
     */
    @ExcelProperty(value = "产品单价")
    private BigDecimal price;

    /**
     * 备注信息
     */
    @ExcelProperty(value = "订单备注")
    private String remark;
}
